package com.example.event_resource_java.commons.enums;

import io.swagger.models.auth.In;

/**
 * @ClassName Constants
 * @Description: 通用常量
 * @Author: ak
 * @CreateDate: 2024/4/7 9:20
 * @UpdateUser: 更新人
 * @UpdateDate: 2024/4/7 9:20
 * @UpdateRemark:
 * @Version: 1.0
 */

public class Constants {

    /**
     * 考试结束时间
     */
    public static final String DEFAULT_END_TIME = "0.00";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 短信验证码 redis key
     */
    public static final String SMS_CODE_KEY = "sms_codes:";

    /**
     * 短信验证码 redis key
     */
    public static final String TEACHER_ID = "teacher_id:";

    /**
     * 短信验证码 redis key
     */
    public static final String SMS_LIMIT_KEY = "sms_limit:";

    /**
     * 失败登录次数 redis key
     */
    public static final String LOGIN_FAIL_KEY = "login_fail_count:";

    /**
     * 账号限制登录 redis key
     */
    public static final String LOGIN_LIMIT_KEY = "login_limit_time:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";


    /**
     * 赛项类型 0 国赛 1 省赛 2 市赛 3 其他赛
     */
    public static final String NATIONAL_MATCH = "国赛";

    public static final String PROVINCE_MATCH = "省赛";

    public static final String CITY_MATCH = "市赛";

    public static final String OTHERS_MATCH = "其他赛";

    /**
     * 赛项资源模板id
     */
    public static final Long EVENTMOID_COMPETITION = 1775402446075265026L;

    /**
     * 课程资源模板id
     */
    public static final Long EVENTMOID_COURSE = 1775402307172499457L;

    /**
     * 1+x证书资源模板id
     */
    public static final Long EVENTMOID_ONEPLUSXCERTIFICATES = 1775402520624824321L;

    /**
     * 技能培训模板id
     */
    public static final Long EVENTMOID_SKILLCULTIVATE = 1775402577172430850L;

    /**
     * 行业资源模板id
     */
    public static final Long EVENTMOID_SECTOR = 1775402630247153666L;

    /**
     * 学生信息不正确
     */
    public static final String ERROR_STUDENT_INFO = "信息不正确！";

    /**
     * 审核中
     */
    public static final Integer STUDENT_CLASS_STATUS_EXAMINATION_NOW = 0;

    /**
     * 审核通过
     */
    public static final Integer STUDENT_CLASS_STATUS_EXAMINATION_SUCCESS = 1;

    /**
     * 审核失败
     */
    public static final Integer STUDENT_CLASS_STATUS_EXAMINATION_FAILED = 2;

    /**
     * 试卷题目类型 单选
     */
    public static final String QUESTION_TYPE_SINGLE = "单选";

    /**
     * 试卷题目类型 多选
     */
    public static final String QUESTION_TYPE_MULTIPLE = "多选";

    /**
     * 试卷题目类型 判断
     */
    public static final String QUESTION_TYPE_JUDGE = "判断";

    /**
     * 试卷题目类型 实操
     */
    public static final String QUESTION_TYPE_PRACTICAL = "实操";

    /**
     * 理论练题等级：初级 2
     */
    public static final String THEORETICAL_GRADE_TYPE_JUNIOR = "初级";

    /**
     * 理论练题等级：中级 1
     */
    public static final String THEORETICAL_GRADE_TYPE_MIDDLE = "中级";

    /**
     * 理论练题等级：高级 0
     */
    public static final String THEORETICAL_GRADE_TYPE_HIGH = "高级";

    /**
     * 理论练题等级：其他
     */
    //public static final String THEORETICAL_GRADE_TYPE_OTHER = "其他";

    /**
     * 0个人会员为学生
     */
    public static final Integer SYS_USER_ROLE_STUDENT = 0;

    /**
     * 1机构会员为老师
     */
    public static final Integer SYS_USER_ROLE_TEACHER = 1;

    /**
     * 2运营会员为讲师
     */
    public static final Integer SYS_USER_ROLE_TUTOR = 2;

}
